package cece.field;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "movie",type = "movie")
@Data
public class MovieField {

    @Id
    @Field(index = true,store = true, type = FieldType.text)
    private Integer mId; // 主键id
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mName; // 电影名称
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mPic; // 图片路径
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mDirector; // 导演
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mActor; // 演员
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mType; // 类型
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mCountry; // 国家
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mLanguage; // 电影语言
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mAlias; // 电影别名
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mTime; // 时长
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mIntro; // 简介
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mDate; // 上映日期
    @Field(index = true, analyzer = "ik_smart", searchAnalyzer = "ik_smart",store = true, type = FieldType.text)
    private String mScore; // 电影评分
}
